package com.xiaofu.live.id.generate.provider.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaofu.live.id.generate.provider.dao.po.IdBuilderPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IdBuilderMapper extends BaseMapper<IdBuilderPO> {

    List<IdBuilderPO> selectAll();

    int updateNewIdAndVersion(@Param("id") int id,@Param("version") int version);

}
